package com.zhang.controller;

import com.alipay.api.AlipayApiException;
import com.zhang.config.AlipayUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import static java.lang.System.out;

/**
 * @author zh
 * @create 2022-03-15 16:47
 */
@RestController
@RequestMapping("order")
public class OrderController {
    @GetMapping
    public String aliPay() throws AlipayApiException {
        String alipay = AlipayUtil.Alipay();
        return alipay;
    }
}
